package com.hotelsystem.reservations.reservations;

import java.io.File;

/**
 * Class providing functionality for moving reservation files from 
 * directory with future reservations to directory with current reservations
 *
 * @author Peter Lazarov
 *
 */
public class CurrentReservationsScheduler extends ReservationsScheduler{

	/**
	 * Constructor for FutureReservationsScheduler class
	 * @param timeInterval - time in milliseconds for scheduler to sleep
	 */
	public CurrentReservationsScheduler(long timeInterval, String sourceDirectory, String destinationDirectory) {
		super(timeInterval,sourceDirectory,destinationDirectory);
	}

	/**
	 * Creates current workers  
	 */
	@Override
	protected void spawnWorkers(File[] files, int lowerBound, int upperBound) {
		CurrentReservationsWorker thWorker = new CurrentReservationsWorker(files, sourceDirectory, destinationDirectory);
		thWorker.start();
	}
	
}
